export interface UserLoginType {
  username: string
  password: string
}

// export interface UserType {
//   username: string
//   password: string
//   role: string
//   roleId: string
// }

interface ChildType {
  PhysicalPath: string
  IsDisplay: number
  RegionType: number
  Icon: string
  Redirect: string
  RedirectType: string
  RouteName: string
  Id: string
  Name: string
  ApiRoute: string
  ParentId: string
  Type: string
  Order: number
  Children: ChildType[]
}

interface RouteListType {
  Id: string
  Name: string
  ApiRoute: string
  ParentId: string
  Type: string
  Order: number
  Children: ChildType[]
}

export interface UserType {
  Id: string
  Name: string
  IsAdmin: boolean
  RouteList: RouteListType[]
}

export interface LoginItem {
  LoginId: string
  CaptchaId: string
  EncryptId: string
  IsMobile: boolean
  LoginPwd: string | boolean
}
